<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="vue.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
  <div id="app">
    <button-counter></button-counter>
    <test></test>
  </div>


  <script type="text/javascript">
    Vue.component('button-counter',{
        props:['title'],
        data: function (){
          return {}
        },
        template: "<div><h1>hi...</h1></div>",
        methods:{}
    })

    var vm = new Vue({
        el: "#app",
        data: {},
        methods: {
          clicknow: function(e){
            console.log(e);
          }
        },
        components:{
          test:{
            template: "<h2>h2...</h2>"
          }
        }

    })

  </script>
</body>
</html>
